import { Permission } from 'src/user/entities/permission.entity';

export interface IUserInfo {
  id: number;

  username: string;

  nickName?: string;

  email?: string;

  headPic?: string;

  phoneNumber?: string;

  isFrozen?: boolean;

  isAdmin: boolean;

  createTime?: number;

  roles: string[];

  permissions: string[];
}
export interface JwtUserData {
  userId: number;
  username: string;
  email: string;
  roles: string[];
  permissions: Permission[];
}
